package com.gaoshi.chapter5;

/**
 * This program demonstrates abstract classes.
 */
public class PersonTest {
    public static void main(String[] args) {
        var people = new Person[2];

        people[0] = new EmployeeAb("Harry Hacker", 50000, 1989, 10, 1);
        people[1] = new Student("Marria Morris", "computer science");

        for (Person p : people) {
            System.out.println(p.getDescription());
        }
    }
}
